package com.example.pingze.repository;

import com.example.pingze.entity.Sentence;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SentenceRepository extends JpaRepository<Sentence, String> , JpaSpecificationExecutor<Sentence> {
    List<Sentence> findSentenceBySentenceFromContains(String sentenceFrom);

    Sentence findSentenceById(String sentenceId);

    List<Sentence> findSentencesBySentenceContains(String keyword);

    Sentence findSentenceBySentenceContains(String answer);
}
